// 8_1.c
#include <stdio.h>
int main()
{
#define MAXGRADES 5
    int grades[MAXGRADES];
    int i;

    /*input the grades*/
    for (i = 0; i < MAXGRADES; i++)
    {
        printf("Enter a grade: ");
        scanf("%d", &grades[i]);
    }

    /*display the grades */
    for (i = 0; i < MAXGRADES; i++)
        printf("grades %d is %d\n", i, grades[i]);

    return 0;
}